package com.zhiche.lisa.lspm.dao.model.lsp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 承运商黑名单
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_lsp_blacklist")
public class LspBlacklist extends Model<LspBlacklist> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 进入黑名单日期
     */
	@TableField("gmt_inlist")
	private Date gmtInlist;
    /**
     * 进入黑名单原因
     */
	@TableField("inlist_reason")
	private String inlistReason;
    /**
     * 移除黑名单日期
     */
	@TableField("gmt_outlist")
	private Date gmtOutlist;
    /**
     * 移除黑名单原因
     */
	@TableField("outlist_reason")
	private String outlistReason;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public Date getGmtInlist() {
		return gmtInlist;
	}

	public void setGmtInlist(Date gmtInlist) {
		this.gmtInlist = gmtInlist;
	}

	public String getInlistReason() {
		return inlistReason;
	}

	public void setInlistReason(String inlistReason) {
		this.inlistReason = inlistReason;
	}

	public Date getGmtOutlist() {
		return gmtOutlist;
	}

	public void setGmtOutlist(Date gmtOutlist) {
		this.gmtOutlist = gmtOutlist;
	}

	public String getOutlistReason() {
		return outlistReason;
	}

	public void setOutlistReason(String outlistReason) {
		this.outlistReason = outlistReason;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LspBlacklist{" +
			", id=" + id +
			", lspId=" + lspId +
			", gmtInlist=" + gmtInlist +
			", inlistReason=" + inlistReason +
			", gmtOutlist=" + gmtOutlist +
			", outlistReason=" + outlistReason +
			", tenantId=" + tenantId +
			"}";
	}
}
